package com.it.a01jdk7datedemo;

import java.util.Date;

public class DateDemo3 {
    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(d);
        Date d2 = new Date(0L);
        System.out.println(d2);
        d2.setTime(1000L);
        System.out.println(d2);
        long time = d.getTime();
        System.out.println(time);
    }
}
